<?php

declare (strict_types=1);
namespace app\mall\model;

use app\mall\model\MallGoods;
use think\model\relation\HasOne;

/**
 * 用户收藏行为数据
 * @class PluginWemallUserActionCollect
 * @package plugin\wemall\model
 */
class MallUserActionCollect extends Abs
{
    /**
     * 关联商品信息
     * @return \think\model\relation\HasOne
     */
    public function goods(): HasOne
    {
        return $this->hasOne(MallGoods::class, 'code', 'gcode');
    }
}